import java.util.Scanner;
public class Text3{
public static void main(String[]args){
Scanner input=new Scanner(System.in);
System.out.println("please enter a number");
int i,n,m,j;
i=input.nextInt();
for(j=0;j<=i;j++)
 {
	   for (n=i-j;n>=0;n--)
	   {
		   System.out.print(" ");
	   }
	   for(m=j;m>0;m--)
	   {
		   System.out.print(m);
	   }
       System.out.println();
 }

 }
}
